package cn.fl.system.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.StringUtils;
import cn.fl.system.dto.SysScoreDtlRecDTO;
import cn.fl.system.service.ISysScoreDtlRecService;
import cn.fl.system.transform.SysScoreDtlRecVOTransform;
import cn.fl.system.vo.SysScoreDtlRecVO;

/**
 * @Description: 评分记录明细表 客户端服务层接口实现
 */
@Service
public class SysScoreDtlRecServiceImpl implements ISysScoreDtlRecService {

	/**
	 * 日志
	 */
	@SuppressWarnings("unused")
	private static final Logger logger = LoggerFactory.getLogger(SysScoreDtlRecServiceImpl.class);
	
	/**
	 * TODO 自定义 API 暴露服务
	 */
	//@Autowired
	//private I自定义ApiService 自定义ApiService;

	@Override
	public SysScoreDtlRecVO selectById(Long id) throws BaseException{
		if(StringUtils.isEmpty(id))return null;
		//TODO 业务逻辑
		SysScoreDtlRecDTO dto = null;//this.自定义ApiService.selectById(id);
		return SysScoreDtlRecVOTransform.toVO(dto);
	}

	@Override
	public Long add(SysScoreDtlRecVO entity) throws BaseException{
		if(null == entity)return null;
		//return this.sysScoreDtlRecApiService.add(SysScoreDtlRecVOTransform.toDTO(entity));
		//TODO 业务逻辑
		return null;
	}

	@Override
	public boolean removeById(Long id) throws BaseException{
		if(StringUtils.isEmpty(id))return false;
		//return this.sysScoreDtlRecApiService.removeById(id);
		//TODO 业务逻辑
		return false;
	}

	@Override
	public boolean modify(SysScoreDtlRecVO entity) throws BaseException{
		if(null == entity)return false;
		//return this.sysScoreDtlRecApiService.modify(SysScoreDtlRecVOTransform.toDTO(entity));
		//TODO 业务逻辑
		return false;
	}

	@Override
	public Pager searchListPage(Pager page) throws BaseException{
		if(null == page)page = new Pager();
		//return this.sysScoreDtlRecApiService.searchListPage(page);
		//TODO 业务逻辑
		return null;
	}
}
